﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TBlog.Web.Models;

namespace TBlog.Web.Repository
{
    public interface IRepository<T> where T : BaseEntity
    {
        int Insert(T Entity);
        int Update(T Entity);
        int Delete(int ID);
        Task<int> InsertAsync(T Entity);
        T GetByID(int ID);
        IQueryable<T> GetAll();
    }
}
